package com.audaque.springboot.foshanupload.web.webdemo.model.req;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zgb
 * @desc ...
 * @date 2023-03-25 20:58:52
 */
@Schema(description = "分数")
@Data

@NoArgsConstructor
@AllArgsConstructor

public class ScoreReq implements Serializable {
    private static final long serialVersionUID = -1242493306307174690L;

    @Schema(description = "id")
    //解决：long类型序列化时精度丢失
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "中文分数")

    private Integer chinese;




}
